package com.example.clientbwic.service.bid;

import com.example.clientbwic.entity.Bid;
import com.example.clientbwic.mapper.BidMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 86150
 * @Date: 2024/4/13
 * @Description: com.example.clientbwic.service.bid
 */
@Service
public class BidServiceImpl implements BidService{
    @Autowired
    BidMapper bidMapper;
    @Override
    public List<Bid> getBidsByBwicId(Long bwicId) {
        return bidMapper.getBidsByBwicId(String.valueOf(bwicId));
    }
    @Override
    public String getBidsCountByBwicId(Long Id) {
        return bidMapper.getBidsCountByBwicId(String.valueOf(Id));
    }

    @Override
    public Bid getSuccessBidByBwicId(Long bwicId) {
        return bidMapper.getSuccessBidByBwicId(String.valueOf(bwicId));
    }
}
